#!/bin/bash

echo Compile erasure-service to $PROJECT_ROOT/$OUTPUT_DIR/$BINARY ...
rm -f $PROJECT_ROOT/$OUTPUT_DIR/$BINARY
mkdir -p $PROJECT_ROOT/$OUTPUT_DIR
chown $UGID $PROJECT_ROOT/$OUTPUT_DIR

CGO_ENABLED=0 go build -o $PROJECT_ROOT/$OUTPUT_DIR/$BINARY
chown $UGID $PROJECT_ROOT/$OUTPUT_DIR/$BINARY
